How would I `wget` files and then save them by date downloaded rather than filename?

Posted by searchfgold6789 on Super User See other posts from Super User or by searchfgold6789
Published on 2013-10-27T01:00:04Z Indexed on 2013/10/27 3:59 UTC
Read the original article Hit count: 462

Filed under:
|
|

My goal: To download 131 JPEGs and save them in a file name format that is relative to the date/time format rather than their file name.

I have already tried things that involve changing the files' names after they have already been downloaded. However, these methods do not work because it seems like exif data is not being kept. For example: jhead -n%Y%m%d-%H%M%S *.jpg just returns a bunch of errors saying:

Possible new names for for '{filename}.jpg' already exist
File '{filename}.jpg' contains no exif date stamp.  Using file date

Usually, as in this case, I wind up with less files than I started out with.

So is there some command I can pass to wget instead? I have already tried the --timestamp option with no success. (The man page is not to clear about what that does.)

© Super User or respective owner

Related posts about linux

Related posts about bash